const express = require('express')
const fs = require('fs')
const config = require(process.cwd() + '/src/config/config')
const Game = require(process.cwd() + '/src/class/index')

let router = express.Router()

/* GET users listing. */
router.get('/', function(req, res) {
  let map = new Game.Map()
  map.init().then(() => {
    res.json(map.folder.settings)
  })
  .catch((err) => {
    console.log(err)
    res.sendStatus(500)
  })
})

module.exports = router
